package com.example.sams.mapper;

import com.example.sams.domain.po.Teachers;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 教师表 Mapper 接口
 * </p>
 *
 * @author jinghong
 * @since 2025-11-04
 */
public interface TeachersMapper extends BaseMapper<Teachers> {

    @Select("SELECT * FROM teachers WHERE user_id = #{userId}")
    Teachers selectByUserId(@Param("userId") String userId);

}
